import request from '@/utils/request'

/**
 * 查询全部方案
 * @returns {AxiosPromise}
 */
export function queryAllPlan(params) {
  return request({
    url: 'rest/api/manager/portal/v1/theme/plan/all',
    method: 'get',
    params
  })
}

export function saveEntity(data) {
  return request({
    url: 'rest/api/manager/portal/v1/theme/plan/save',
    method: 'post',
    data
  })
}

export function updateEntity(data) {
  return request({
    url: 'rest/api/manager/portal/v1/theme/plan/update',
    method: 'post',
    data
  })
}

export function delObject(data) {
  return request({
    url: 'rest/api/manager/portal/v1/theme/plan/del',
    method: 'post',
    data
  })
}
